package com.ruoyi.web.dto.client;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigInteger;
import java.time.LocalDate;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class WorkOrderSubmit {

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "产品id")
    @NotNull(message = "产品id不能为空")
    private Long productId;

    @ApiModelProperty(value = "产品名称")
    @NotBlank(message = "产品名称不能为空")
    private String productName;

    @ApiModelProperty(value = "0:gps工单 1:抵押工单")
    @NotNull(message = "工单类型不能为空")
    private Integer type;

    @ApiModelProperty(value = "客户名称")
    @NotBlank(message = "客户名称不能为空")
    private String clientName;

    @ApiModelProperty(value = "客户联系电话")
    @NotBlank(message = "客户联系电话不能为空")
    private String clientPhone;

    @ApiModelProperty(value = "车牌号")
    @NotBlank(message = "车牌号不能为空")
    private String carNumber;

    @ApiModelProperty(value = "现场联系人")
    @NotBlank(message = "现场联系人不能为空")
    private String sceneContactName;

    @ApiModelProperty(value = "现场联系人电话")
    @NotBlank(message = "现场联系人电话不能为空")
    private String sceneContactPhone;

    @ApiModelProperty(value = "办理日期")
    @NotNull(message = "办理日期不能为空")
    private LocalDate handleDate;

    @ApiModelProperty(value = "时间段")
    @NotBlank(message = "时间段不能为空")
    private String time;

    @ApiModelProperty(value = "办理地点")
    @NotBlank(message = "办理地点不能为空")
    private String address;

    @ApiModelProperty(value = "交付方式 0:现场交付 1:快递方式")
    @NotNull(message = "交付方式不能为空")
    private Integer mode;

    @ApiModelProperty(value = "备注信息")
    private String remark;


}
